package com.example.springboot.common.mapper;

import com.example.springboot.common.entity.CommonUser;
import com.example.springboot.common.request.BaseRequest;
import com.example.springboot.common.request.LoginRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommonUserMapper {
    List<CommonUser> list();
    List<CommonUser> listByCondition(BaseRequest baseRequest);
    void save(CommonUser obj);
    CommonUser getById(Integer id);
    void updateById(CommonUser obj);
    void deleteById(Integer id);
    CommonUser getByUsernameAndPassword(LoginRequest loginRequest);
    CommonUser getByUsername(String username);
}